package com.service;

import com.page.GenericPage;
import com.po.VenderDeviceModifyPO;
import com.po.VenderDevicePO;
import com.po.VenderDeviceQueryPO;
import com.result.Result;
import com.vo.DeviceInfoVO;
import com.vo.VenderDeviceQueryVO;
import com.vo.VenderDeviceVO;

import java.util.List;

/**
 * @Author: chihaojie
 * @Date: 2019/5/29 16:04
 * @Version 1.0
 * @Note
 */
public interface VenderDeviceService {

    Result<VenderDeviceQueryVO> save(VenderDevicePO venderDevicePO);

    Result<Boolean> removeById(Long id);

    Result<Boolean> modifyById(VenderDeviceModifyPO venderDeviceModifyPO);

    Result<VenderDeviceQueryVO> queryById(Long id);

    Result<GenericPage<VenderDeviceVO>> queryAll(VenderDeviceQueryPO venderDeviceQueryPO);

    public Result<DeviceInfoVO> queryDeviceDetailInfoBySn(String sn);

    public Result<DeviceInfoVO> queryDeviceDetailInfoBySnAndHandleAppVersion(String sn,String appVersion);

    Result<List<VenderDeviceVO>> getMineDevieList();
}
